<% include header.ejs %>

<table border="0" cellspacing="5" align = "center">
<tr>
<td>输入来源campaign_id:</td>
<td>
<form align = "center" style="margin-top:0px;" method="post"> 
<input type="text"  name="top_campaign_id" style="width:100px;" />
<button type="submit">刷新</button>
</form>
</td>

<td>输入interface_info id:</td>
<td>
<form align = "center" style="margin-top:0px;" method="post"> 
<input type="text" name="top_interface_info_id" style="width:100px;" />
<button type="submit">查询</button>
</form>
</td>
</tr>
</table>


<form method="post">
<table border="0" cellspacing="5">
<tr>
  <td>常用数据:</td>
</tr>
<tr>
  <td>campid</td>
  <td><input type="text" value = "<%= interface_info_v1.campid %>" name= "campid" style="width:330px;"/></td>
  <td>offer_name</td>
  <td><input type="text" value = "<%= interface_info_v1.offer_name %>"  name= "offer_name" style="width:330px;"/></td>
</tr>
<tr>
  <td>price</td>
  <td><input type="text" value = "<%= interface_info_v1.price %>" name= "price" style="width:330px;"/></td>
  <td>pid</td>
  <td><input type="text" value = "<%= interface_info_v1.pid %>" name= "pid" style="width:330px;"/></td>
</tr>
<tr>
  <td>platform</td>
  <td>
  <select name= "platform" id = "platform" >
    <option value="Android">Android</option>  
    <option value="IOS">IOS</option>  
    <option value="Android/IOS">Android/IOS</option>  
  </select> 
  </td>
  <td>geo</td>
  <td><textarea rows="1" cols="45"  name= "geo"><%= interface_info_v1.geo %></textarea></td>
</tr>
<tr>
  <td>tracking_link</td>
  <td><input type="text" value = "<%= interface_info_v1.tracking_link %>" name= "tracking_link" style="width:330px;"/></td>
  <td>preview_link</td>
  <td><input type="text" value = "<%= interface_info_v1.preview_link %>" name= "preview_link" style="width:330px;"/></td>
</tr>
<tr>
  <td>performance_criteria</td>
  <td><textarea rows="3" cols="45" name= "performance_criteria"><%= interface_info_v1.performance_criteria %></textarea></td>
  <td>requirement_traffic</td>
  <td><textarea rows="3" cols="45" name= "requirement_traffic"><%= interface_info_v1.requirement_traffic %></textarea></td>
</tr>
<tr>
  <td>daily_cap</td>
  <td><input type="text" value = "<%= interface_info_v1.daily_cap %>" name= "daily_cap" style="width:330px;"/></td>
  <td>app_name</td>
  <td><input type="text" value = "<%= interface_info_v1.app_name %>" name= "app_name" style="width:330px;"/></td>
  <td><input type="submit" value="提交sql"/></td>
</tr>
<tr>
  <td>可以不录入的数据:</td>
</tr>
<tr>
  <td>app_category</td>
  <td><input type="text" value = "<%= interface_info_v1.app_category %>" name= "app_category" style="width:330px;"/></td>
  <td>price_model</td>
  <td><input type="text" value = "<%= interface_info_v1.price_model %>" name= "price_model" style="width:330px;"/></td>
</tr>
<tr>
  <td>status</td>
  <td><input type="text" value = "<%= interface_info_v1.status %>" name= "status" style="width:330px;"/></td>
  <td>state</td>
  <td><input type="text" value = "<%= interface_info_v1.state %>" name= "state" style="width:330px;"/></td>
</tr>
<tr>
  <td>creative_link</td>
  <td><input type="text" value = "<%= interface_info_v1.creative_link %>" name= "creative_link" style="width:330px;"/></td>
  <td>exclude_device</td>
  <td><input type="text" value = "<%= interface_info_v1.exclude_device %>" name= "exclude_device" style="width:330px;"/></td>
</tr>
<tr>
  <td>exclude_site</td>
  <td><input type="text" value = "<%= interface_info_v1.exclude_site %>" name= "exclude_site" style="width:330px;"/></td>
  <td>carriers</td>
  <td><input type="text" value = "<%= interface_info_v1.carriers %>" name= "carriers" style="width:330px;"/></td>
</tr>
<tr>
  <td>icon_link</td>
  <td><input type="text" value = "<%= interface_info_v1.icon_link %>" name= "icon_link" style="width:330px;"/></td>
  <td>min_android_version</td>
  <td><input type="text" value = "<%= interface_info_v1.min_android_version %>" name= "min_android_version" style="width:330px;"/></td>
</tr>
<tr>
  <td>max_android_version</td>
  <td><input type="text" value = "<%= interface_info_v1.max_android_version %>" name= "max_android_version" style="width:330px;"/></td>
  <td>tips</td>
  <td><input type="text" value = "<%= interface_info_v1.tips %>" name= "tips" style="width:330px;"/></td>
</tr>
<tr>
  <td>app_desc</td>
  <td><input type="text" value = "<%= interface_info_v1.app_desc %>" name= "app_desc" style="width:330px;"/></td>
  <td>app_size</td>
  <td><input type="text" value = "<%= interface_info_v1.app_size %>" name= "app_size" style="width:330px;"/></td>
</tr>
<tr>
  <td>app_rate</td>
  <td><input type="text" value = "<%= interface_info_v1.app_rate %>" name= "app_rate" style="width:330px;"/></td>
  <td>start_date</td>
  <td><input type="text" value = "<%= interface_info_v1.start_date %>" name= "start_date" style="width:330px;"/></td>
</tr>
<tr>
  <td>end_date</td>
  <td><input type="text" value = "<%= interface_info_v1.end_date %>" name= "end_date" style="width:330px;"/></td>
  <td>effective_date</td>
  <td><input type="text" value = "<%= interface_info_v1.effective_date %>" name= "effective_date" style="width:330px;"/></td>
</tr>
<tr>
  <td>update_date</td>
  <td><input type="text" value = "<%= interface_info_v1.update_date %>" name= "update_date" style="width:330px;"/></td>
</tr>
<tr>
  <td>非录入数据:</td>
</tr>
<tr>
  <td>id</td>
  <td><input type="text" value = "<%= interface_info_v1.id %>" name= "id" style="width:330px;"/></td>
</tr>
</table>
</form>

<script type = "text/javascript" >
    var index
    if("<%= interface_info_v1.platform %>" == 'Android')
      index = 0
    else if("<%= interface_info_v1.platform %>" == 'IOS')
      index = 1
    else if("<%= interface_info_v1.platform %>" == 'Android/IOS')
      index = 2

    document.getElementById("platform")[index].selected=true;
</script >
<% include footer.ejs %>